package com.exercise.cn.test;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author admin
 * 2019/11/29-10:15
 *
 **/
@Controller
public class HelloController {
    @ResponseBody
    @RequestMapping("/hello")
    public String sayHello() {

        return"Hello World";
    }
}
